package com.designpatterns.iterator.aggregate;

import com.designpatterns.iterator.iterator.Iterator;

/**
 * List Interface
 * @see Iterator
 * 
 * @author Haiqi.Wang
 * @since 2013-6-9下午4:06:35
 */
public interface List {
	/**
	 * iterator method
	 * @return {@link Iterator}
	 */
	Iterator iterator();

	/**
	 * get method
	 * @param index int
	 * @return obj
	 */
	Object get(int index);

	/**
	 * getSize method
	 * @return int
	 */
	int getSize();

	/**
	 * add method
	 * @param obj object
	 */
	void add(Object obj);
}
